//
//  JQFXHLoanKnowlagemmViewController.swift
//  Lishui_JieDianQianHua
//
//  Created by 卢小艳 on 2025/7/17.
//

import Foundation
import UIKit
import SnapKit


class JQFXHLoanKnowlagemmViewController: HJYJBaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        jqfxhIsNavBarjjHidden = true
        
        self.jqfxhSetnnUI()
        
    }
    
    
    @objc  func jqfxhBackttBtnClick() -> Void {
        navigationController?.popViewController(animated: true)

    }
    
    
    func jqfxhSetnnUI() -> Void {
        
        self.view.addSubview(jqfxhScrollooview)
        jqfxhScrollooview.addSubview(jqfxhContentppView)
        jqfxhScrollooview.snp.makeConstraints { make in
            make.edges.equalTo(self.view)
        }
        jqfxhContentppView.snp.makeConstraints { make in
            make.top.bottom.equalTo(jqfxhScrollooview)
            make.left.right.equalTo(self.view)
        }
        
        let heighqqt = jqfxhScreenWidth*1012/375
        
        jqfxhContentppView.addSubview(jqfxhBgrrImage)
        jqfxhBgrrImage.snp.makeConstraints { make in
            make.left.right.top.equalTo(jqfxhContentppView)
            make.height.equalTo(heighqqt)
            make.bottom.equalTo(jqfxhContentppView)
        }
        let contentHeight = (jqfxhScreenWidth-32)*639/343

        jqfxhContentppView.addSubview(jqfxhContentssImage)
        jqfxhContentssImage.snp.makeConstraints { make in
            make.left.equalTo(jqfxhContentppView).offset(16)
            make.centerX.equalTo(jqfxhContentppView)
            make.height.equalTo(contentHeight)
            make.bottom.equalTo(jqfxhContentppView).offset(-20)
        }
        
        
        jqfxhContentppView.addSubview(jqfxhBackttBtn)
        jqfxhBackttBtn.snp.makeConstraints { make in
            make.left.equalTo(jqfxhContentppView).offset(10)
            make.top.equalTo(UIApplication.shared.jqfxhSafeAreaInsets.top + 10)
            make.width.height.equalTo(32)
        }
        
        
        
        
    }
    
   
    
    lazy var jqfxhContentppView : UIView = {
        let jqfxhContentppView = UIView()
        
        return jqfxhContentppView
    }()
    
    
   
    
    lazy var jqfxhScrollooview : UIScrollView = {
        let jqfxhScrollooview = UIScrollView(frame: CGRectMake(0, 0, jqfxhScreenWidth, jqfxhScreenHeight))
        if #available(iOS 11.0, *) {
            jqfxhScrollooview.contentInsetAdjustmentBehavior = .never
        } else {
        }
        return jqfxhScrollooview
    }()
    
    lazy var jqfxhContentssImage : UIImageView = {
        let jqfxhContentssImage = UIImageView(image: UIImage(named: "jqfxh_about_content"))
        jqfxhContentssImage.isUserInteractionEnabled = true
        return jqfxhContentssImage
    }()
    
    
    lazy var jqfxhBgrrImage : UIImageView = {
        let jqfxhBgrrImage = UIImageView(image: UIImage(named: "jqfxh_about_bg"))
        jqfxhBgrrImage.isUserInteractionEnabled = true
        return jqfxhBgrrImage
    }()
    
    
    
    lazy var jqfxhBackttBtn : UIButton = {
        let jqfxhBackttBtn = UIButton(type: .custom)
        jqfxhBackttBtn.setBackgroundImage(UIImage(named: "jqfxh_nav_white_back"), for: .normal)
        jqfxhBackttBtn.setBackgroundImage(UIImage(named: "jqfxh_nav_white_back"), for: .highlighted)
        jqfxhBackttBtn.addTarget(self, action: #selector(jqfxhBackttBtnClick), for: .touchUpInside)
        return jqfxhBackttBtn
    }()
    
   
    
    
   
}
